package com.richman.view;

import java.awt.BorderLayout;
import java.util.Vector;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.richman.ps38.entity.Event;
import com.richman.ps38.entity.HGEvent;
import com.richman.ps38.entity.ISNEvent;
import com.richman.ps38.entity.ISNTeam;

public class TeamMatchWindowPane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 111L;
	
	public TeamMatchWindowPane(){
        intiComponent();  
      
	}
	
	

	
	
	private JTabbedPane jTabbedpane = new JTabbedPane();// ���ѡ������  


	ISNPS38TeamMatchPane isnps38TeamMatchPane = new ISNPS38TeamMatchPane();
	
	HGPS38TeamMatchPane hgps38TeamMatchPane = new HGPS38TeamMatchPane();
	
	//HGISNTeamMatchPane hgisnTeamMatchPane = new HGISNTeamMatchPane();
	
	
	


    private void intiComponent()  
    {  

		
		
		setLayout(new BorderLayout());
		

		add(jTabbedpane);  
		
		jTabbedpane.add(isnps38TeamMatchPane,"ISN & PS38");
		
		jTabbedpane.add(hgps38TeamMatchPane,"HG & PS38");
        

        setBounds(100, 100, 1220, 630); 

    }


	public void updateTeamMatchisnTeams(Vector<ISNTeam> isnevents){
		isnps38TeamMatchPane.updateISNTeams(isnevents);
		
	}

	public void updateTeamMatchHGTeams(Vector<HGEvent> hgevents){
		
		hgps38TeamMatchPane.updateHGTeams(hgevents);
	}
	
	
	public void updateTeamMatchPS38Teams(Vector<Event> ps38events) {
		isnps38TeamMatchPane.updatePS38Teams(ps38events);
		hgps38TeamMatchPane.updatePS38Teams(ps38events);
	}
	
	public void updateTeamMatchISNTeams(Vector<ISNTeam> isnevents) {
		//hgisnTeamMatchPane.updateisnTeams(isnevents);
	}

	public Vector<String[]> getISNPS38TeamsList(){
		return isnps38TeamMatchPane.getISNPS38TeamsList();
	}
	
	public Vector<String[]> getISNPS38LeaguesList(){
		return isnps38TeamMatchPane.getISNPS38LeaguesList();
	}
	
	public Vector<String[]> getHGPS38TeamsList(){
		return hgps38TeamMatchPane.getHGPS38TeamsList();
	}
	
	public Vector<String[]> getHGPS38LeaguesList(){
		return hgps38TeamMatchPane.getHGPS38LeaguesList();
	}
	
	public Vector<String[]> getHGISNTeamsList(){
		return null;//hgisnTeamMatchPane.getHGisnTeamsList();
	}
}
